package com.zhxy.result;

import lombok.*;

/**
 * 状态码
 */

@Getter
@AllArgsConstructor
@NoArgsConstructor
@RequiredArgsConstructor
public enum CodeEnum {
    OK(200,"成功"),
    FALL(500,"失败"),
    TOKEN_IS_NULL(901,"请求参数Token为空"),
    TOKEN_IS_EXPIRED(902,"Token已过期"),
    TOKEN_IS_ERROR(903,"Token不一致"),
    TOKEN_BE_UPDATE(904,"Token被修改"),
    user_logout(200,"退出成功"),
    ;
    private int code;

    @NonNull
    private String msg;
}
